<?php

class spTableHeader extends spElement
{
	public function __construct( $param=null )
	{
		parent::__construct( "thead", $param );
		
		if ( isset($param["cols"]) )
			$this->addCols( $param["cols"] );
	}
	
	public function addCols( $ar )
	{
		$row = $this->addRow();
		return $row->addHeaderCols( $ar );		
	}
	
	public function addRow()
	{
		$tr = new spTableRow;
		parent::addChild( $tr );
		return $tr;
	}
}

?>